<%--
  ~     index.jsp  Copyright (c) 2021. cc01cc. All rights reserved.
  ~
  ~     This file is part of e-commerce.
  ~
  ~     e-commerce is free software: you can redistribute it and/or modify
  ~     it under the terms of the GNU Affero General Public License as published
  ~     by the Free Software Foundation, either version 3 of the License, or
  ~     (at your option) any later version.
  ~
  ~     e-commerce is distributed in the hope that it will be useful,
  ~     but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~     GNU Affero General Public License for more details.
  ~
  ~     You should have received a copy of the GNU Affero General Public License
  ~     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  --%>
<%@ page import="util.Constant" %>
<%@ page import="pojo.User_register" %>
<%--<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>--%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>


<html>
<head>
    <title>首页</title>
</head>
<body>
    <%
//        User_register user = (User_register) pageContext.findAttribute(Constant.USER_SESSION);
//        String userName = user.getUser_name();

    %>
    <%@include file="common/header.jsp"%>
    <h1>这是首页</h1>
    <h2>Hello World!</h2>
    <a href = "./login.jsp">注册/登录</a>
    <h3>${userSession.user_name}</h3>
    <%@include file="common/footer.jsp"%>
</body>
</html>
